package com.controller;

import com.dao.AccountDao;
import com.pojo.Account;
import com.pojo.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;
import java.util.List;
import java.util.Map;

@Controller
public class TeacherController {

    @RequestMapping("/showaddTeacher")
    public String showaddTeacher(){

        return "addTeacher.html";
    }

    @RequestMapping("/addTeacher.do")
    public String addTeacher(@Valid Teacher tea){
        System.out.println(tea);
        return "success.html";
    }
}
